package iotest.stream;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

public class OISDemo {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream fis= new FileInputStream("kk.dat");
        ObjectInputStream ois = new ObjectInputStream(fis);
        Object obj=  ois.readObject();
        Student kk =(Student) obj;
        System.out.println(kk);
        ois.close();



    }
}
